<?
session_start();

include_once "config.php";
include_once "prerequisite.php";

if ( $cmd == "init" ) {
	$query = "truncate {$table_prefix}temporary_concept";
	$result = mysql_query($query);

	echo json_encode("ok");

} else if ( $cmd == "insert" ) {
	$query = "insert into {$table_prefix}temporary_concept(cui) values ('$cui')";
	$result = mysql_query($query);
	
	echo json_encode("ok");

} else if ( $cmd == "delete" ) {
	$query = "delete from {$table_prefix}temporary_concept where cui = '$cui'";
	$result = mysql_query($query);

	echo json_encode("ok");
}
?>